package com.zzy.banian.crm.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 合同表 crm_contract
 * 
 * @author zhangzuoyi
 * @date 2019-05-04
 */
public class Contract extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 名称 */
	private String name;
	/** 合同编号 */
	private String contractNo;
	/** 客户ID */
	private Integer customerId;
	/** 商机ID */
	private Integer opportunityId;
	/** 我方签约人ID */
	private Integer ourUserId;
	/** 我方签约人姓名 */
	private String ourUserName;
	/** 客户签约人ID */
	private Integer customerContactId;
	/** 客户签约姓名 */
	private String customerContactName;
	/** 合同金额 */
	private Integer amount;
	/** 签约日期 */
	private String signDate;
	/** 开始日期 */
	private String startDate;
	/** 结束日期 */
	private String endDate;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setName(String name) 
	{
		this.name = name;
	}

	public String getName() 
	{
		return name;
	}
	public void setContractNo(String contractNo) 
	{
		this.contractNo = contractNo;
	}

	public String getContractNo() 
	{
		return contractNo;
	}
	public void setCustomerId(Integer customerId) 
	{
		this.customerId = customerId;
	}

	public Integer getCustomerId() 
	{
		return customerId;
	}
	public void setOpportunityId(Integer opportunityId) 
	{
		this.opportunityId = opportunityId;
	}

	public Integer getOpportunityId() 
	{
		return opportunityId;
	}
	public void setOurUserId(Integer ourUserId) 
	{
		this.ourUserId = ourUserId;
	}

	public Integer getOurUserId() 
	{
		return ourUserId;
	}
	public void setOurUserName(String ourUserName) 
	{
		this.ourUserName = ourUserName;
	}

	public String getOurUserName() 
	{
		return ourUserName;
	}
	public void setCustomerContactId(Integer customerContactId) 
	{
		this.customerContactId = customerContactId;
	}

	public Integer getCustomerContactId() 
	{
		return customerContactId;
	}
	public void setCustomerContactName(String customerContactName) 
	{
		this.customerContactName = customerContactName;
	}

	public String getCustomerContactName() 
	{
		return customerContactName;
	}
	public void setAmount(Integer amount) 
	{
		this.amount = amount;
	}

	public Integer getAmount() 
	{
		return amount;
	}
	public void setSignDate(String signDate) 
	{
		this.signDate = signDate;
	}

	public String getSignDate() 
	{
		return signDate;
	}
	public void setStartDate(String startDate) 
	{
		this.startDate = startDate;
	}

	public String getStartDate() 
	{
		return startDate;
	}
	public void setEndDate(String endDate) 
	{
		this.endDate = endDate;
	}

	public String getEndDate() 
	{
		return endDate;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("contractNo", getContractNo())
            .append("customerId", getCustomerId())
            .append("opportunityId", getOpportunityId())
            .append("ourUserId", getOurUserId())
            .append("ourUserName", getOurUserName())
            .append("customerContactId", getCustomerContactId())
            .append("customerContactName", getCustomerContactName())
            .append("amount", getAmount())
            .append("signDate", getSignDate())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("remark", getRemark())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
